package com.gpf.marketing.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gpf.marketing.pojo.entity.AdvManage;
import com.gpf.marketing.pojo.entity.AdvPosition;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface AdvManageMapper extends BaseMapper<AdvManage> {
    //名称的唯一性校验

    List selectOneName(AdvManage advManage);
    //与广告位置表关联
    IPage<AdvManage> findName(Page<AdvManage> page,
                                @Param(Constants.WRAPPER) QueryWrapper<AdvManage> wrapper);
}
